import { Controller, Get, Post, Body, Patch, Param, Delete } from '@nestjs/common'
import { LevelOneSubjectService } from './level-one-subject.service'
// eslint-disable-next-line @typescript-eslint/no-unused-vars
import { CreateLevelOneSubjectDto } from './dto/create-level-one-subject.dto'
@Controller('api/level-one-subject')
export class LevelOneSubjectController {
  constructor(private levelOneSubjectService: LevelOneSubjectService) {}

  @Get()
  findAll() {
    return this.levelOneSubjectService.findAll()
  }
  //
  @Delete(':id')
  remove(@Param('id') id: string) {
    return this.levelOneSubjectService.remove(id)
  }

  @Post('/update')
  update(@Body() CreateLevelOneSubjectDto: CreateLevelOneSubjectDto) {
    return this.levelOneSubjectService.update(CreateLevelOneSubjectDto)
  }

  @Post()
  create(@Body() CreateLevelOneSubjectDto: CreateLevelOneSubjectDto) {
    return this.levelOneSubjectService.create(CreateLevelOneSubjectDto)
  }
}
